import { get, post } from "../request";

const siteApi = {
  addSite: data => post('/location-inf/addLocation',data),
  updateSite: data => post('location-inf/updateLocation',data),
  getSiteList: (page=1,size=10,wk='') => {
    let params = {currentPage: page,count:size,wk}
    return get('/location-inf/getLocation',params)
  },
  delSite(id) {
    return get(`/location-inf/delLocation`,{locationId: id})
  },
  initMap(id) {
    return get(`/points-inf/initMap`,{locationId: id})
  }
}

export default siteApi